翻訳と辞書 |
Snake case
Snake case (or snake_case) is the practice of writing compound words or phrases in which the elements are separated with one underscore character (_) and no spaces, with each element's initial letter usually lowercased within the compound and the first letter either upper or lower case—as in "foo_bar" and "Hello_world". It is commonly used in computer code for variable names, and function names, and sometimes computer filenames.〔e.g. in Python and Ruby; see Naming convention (programming)〕 At least one study found that readers can recognize snake case values more quickly than camelCase. == History == The use of underscores as word separators in identifiers in programming languages is old, dating to the late 1960s and the widespread adoption of the ASCII character set. It is particularly associated with C, being found in ''The C Programming Language'' (1978), and contrasted with Pascal case, an older term for CamelCase. However, the convention traditionally had no specific name: the Python style guide refers to it simply as "lower_case_with_underscores".〔(【引用サイトリンク】title=PEP 0008 -- Style Guide for Python Code )〕 The name "snake_case" comes from the Ruby community, where it was coined in 2004 by Gavin Kistner, writing: The name is evidently by contrast with CamelCase (as the subject of the message notes), continuing the animal theme with a long creature, low to the ground. there are no standard names for other delimiter-separated naming conventions for multiple-word identifiers, though there are various terms with limited usage, such as lisp-case, kebab-case, SCREAMING_SNAKE_CASE, etc.
抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Snake case」の詳細全文を読む
スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース |
Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.
|
|